<?php 
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: list.html.php 1163 2009-10-09 08:02:14Z Anna_Eliasson $
 */
 
defined('PHPFOX') or exit('NO DICE!'); 

?>
{if count($aListings) > 0}
    {literal}
    <script type="text/javascript">
        $(document).ready(function(){
            var $container = $("#marketplace_top_listing");
            $container.imagesLoaded(function (){
                $container.masonry({
                      itemSelector: '.listing_item',
                      columnWidth: 230,
                      gutterWidth: 20
                });
            });
        });
    </script>
    {/literal}
    <div id="marketplace_top_listing" class="marketplace_top_listing">
        {foreach from=$aListings item=aListing}
            {template file='marketplace.block.item.row'}
        {/foreach}
    </div>
{/if}